package com.orafl.use.comorafluse.IOC.Injection;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.env.Environment;

public class test {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(test.class);
        // 注入的bean 不只是指定的bean 还有系统bean
        Environment cl = context.getBeanFactory().getBean(Environment.class);

        Object b1 = context.getBeanFactory().getBean("org.springframework.context.annotation.internalConfigurationAnnotationProcessor");
        Object b2 = context.getBeanFactory().getBean("org.springframework.context.annotation.internalAutowiredAnnotationProcessor");
        System.out.println("*************************");
        System.out.println(cl.toString());
        System.out.println("*************************");
        System.out.println(b1.toString());
        System.out.println("*************************");
        System.out.println(b2.toString());
    }
}
